<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<html>
<head>
    <title></title>
    <link href="<s:url value='/common/lib/ligerUI/skins/Aqua/css/ligerui-all.css'/>" rel="stylesheet" type="text/css" />
    <script src="<s:url value='/common/lib/jquery/jquery-1.3.2.min.js'/>" type="text/javascript"></script>
    <script src="<s:url value='/common/lib/ligerUI/js/core/base.js'/>" type="text/javascript"></script>
    <script src="<s:url value='/common/lib/ligerUI/js/plugins/ligerGrid.js'/>" type="text/javascript"></script>
	<script src="<s:url value='/common/lib/ligerUI/js/plugins/ligerResizable.js'/>" type="text/javascript"></script>
    
    <script type="text/javascript">
        var manager = null;
        $(f_initGrid);
        function f_initGrid() {
        	var rs = $("#recordStatus").val();
        	if(rs == "3") {
	            manager = $("#maingrid").ligerGrid({
	                columns: [
	                {display:'修改', name:'modified', width:80},
	                {display:'零售订单', name:'retailOrder', width:80},
					{display:'零售时间', name:'retailTime', width:80},
					{display:'车辆', name:'autoCode', width:80},
					{display:'颜色', name:'colorName', width:80},
					{display:'车型年', name:'autoAge', width:80},
					{display:'版本号', name:'version', width:80},
					{display:'内饰', name:'innerOrnamentName', width:80},
					{display:'选装包', name:'optionalPackageName', width:80},
					{display:'用户名称', name:'customerName', width:80},
					{display:'零售单价', name:'retailPrice', width:80},
					{display:'VIN码', name:'VINCode', width:80},
					{display:'转卖客户', name:'reselled', width:80},
					{display:'是否装配', name:'isAssembled', width:80}],
	                enabledEdit:false,
					clickToEdit:false,
					width: '100%',
					height:'100%',
					pageSize:30,
	                data:eval('(' + $("#recordsJOSNStr").val() + ')')
	            });
            } else {
            	manager = $("#maingrid").ligerGrid({
	                columns: [
	                {display:'客户代码', name:'customerCode', width:80},
	                {display:'客户名称', name:'customerName', width:80},
					{display:'原始提单号', name:'originalOrderNumber', width:80},
					{display:'开单日期', name:'orderStartDate', width:80},
					{display:'入库日期', name:'inStorageDate', width:80},
					{display:'出库日期', name:'outStorageDate', width:80},
					{display:'VIN码', name:'VINCode', width:80},
					{display:'发动机号', name:'enginCode', width:80},
					{display:'车辆代码', name:'autoCode', width:80},
					{display:'车辆名称', name:'autoName', width:80},
					{display:'颜色代码', name:'colorNumber', width:80},
					{display:'颜色名称', name:'colorName', width:80},
					{display:'车型年', name:'autoAge', width:80},
					{display:'版本号', name:'version', width:80},
					{display:'内饰', name:'innerOrnament', width:80},
					{display:'内饰名', name:'innerOrnamentName', width:80},
					{display:'选装包', name:'optionalPackageName', width:80},
	                {display:'状态名称', name:'status', type:'int',width:80,
						render: function (item) {
	                        if (item.status == 0) return '正常车在途';
							if (item.status == 1) return '在库';
							if (item.status == 2) return '未提';
							if (item.status == 3) return '虚拟';
	                        return '未知';
						}
	                },
	                {display:'属性名称', name:'attributeName', width:80},
	                {display:'自制件', name:'flag', width:80},
	                {display:'存放地代码', name:'storageLocationCode', width:80},
	                {display:'存放地点', name:'storageLocation', width:80}],
	                enabledEdit:false,
					clickToEdit:false,
					width: '100%',
					height:'100%',
					pageSize:30,
	                data:eval('(' + $("#recordsJOSNStr").val() + ')')
	            });
            }
        }
    </script>
</head>
<body  style="padding:10px">
	<s:hidden name="recordStatus"/>
	<s:hidden name="recordsJOSNStr"/>
	<div class="l-clear"></div>
	
    <div id="maingrid" style="margin-top:20px"></div>
    
   	<div style="display:none;"></div>
</body>
</html>